FIND_PATH(DEMO_INCLUDE_DIR
	demo.h
	/tmp/demo/usr/include/demo
	/usr/include/demo)
FIND_LIBRARY(DEMO_LIBRARY
	NAMES demo
	PATH
	/tmp/demo/usr/lib
	/usr/lib
	/usr/local/lib)

IF (DEMO_INCLUDE_DIR AND DEMO_LIBRARY)
	SET(DEMO_FOUND TRUE)
ENDIF (DEMO_INCLUDE_DIR AND DEMO_LIBRARY)

IF (DEMO_FOUND)
	IF (NOT DEMO_FIND_QUIETLY)
		MESSAGE(STATUS "Found demo: ${DEMO_LIBRARY}")
	ENDIF (NOT DEMO_FIND_QUIETLY)
ELSE (DEMO_FOUND)
	IF (DEMO_FIND_REQUIRED)
		MESSAGE(FATAL_ERROR "Could not find demo library")
	ENDIF (DEMO_FIND_REQUIRED)
ENDIF (DEMO_FOUND)

